package com.ct.entity.po;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.ct.entity.enums.DateTimePatternEnum;
import com.ct.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 经理审批报销申请记录
 */
public class ReimbursementApprovalMa implements Serializable {

    /**
     * 经理审批报销申请编号
     */
    private Integer reimbursementApprovalMaId;

    /**
     * 报销编号
     */
    private Integer reimbursementId;

    /**
     * 经理编号
     */
    private String managerId;

    /**
     * 审批日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

    public void setReimbursementApprovalMaId(Integer reimbursementApprovalMaId) {
        this.reimbursementApprovalMaId = reimbursementApprovalMaId;
    }

    public Integer getReimbursementApprovalMaId() {
        return this.reimbursementApprovalMaId;
    }

    public void setReimbursementId(Integer reimbursementId) {
        this.reimbursementId = reimbursementId;
    }

    public Integer getReimbursementId() {
        return this.reimbursementId;
    }

    public void setManagerId(String managerId) {
        this.managerId = managerId;
    }

    public String getManagerId() {
        return this.managerId;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getDate() {
        return this.date;
    }

    @Override
    public String toString() {
        return "经理审批报销申请编号:" + (reimbursementApprovalMaId == null ? "空" : reimbursementApprovalMaId) + "，报销编号:"
                + (reimbursementId == null ? "空" : reimbursementId) + "，经理编号:" + (managerId == null ? "空" : managerId)
                + "，审批日期:" + (date == null ? "空" : DateUtil.format(date, DateTimePatternEnum.YYYY_MM_DD.getPattern()));
    }
}
